package com.shoukaiseki.test.spring.redis.config;

import org.springframework.data.redis.connection.RedisStandaloneConfiguration;
import redis.clients.jedis.JedisPoolConfig;

/**
 * <br>
 *
 * @author 蒋カイセキ    Japan-Tokyo  18-11-12 下午6:45<br>
 * ブログ http://www.shoukaiseki.top/<br>
 * E-メール jiang28555@Gmail.com<br>
 **/
public class RedisProperties {

    private RedisStandaloneConfiguration standaloneConfig;


    private String password;


    private JedisPoolConfig poolConfig;

    private long readTimeout=5000;

    private long connectTimeout=5000;

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public long getReadTimeout() {
        return readTimeout;
    }

    public void setReadTimeout(long readTimeout) {
        this.readTimeout = readTimeout;
    }

    public long getConnectTimeout() {
        return connectTimeout;
    }

    public void setConnectTimeout(long connectTimeout) {
        this.connectTimeout = connectTimeout;
    }

    public JedisPoolConfig getPoolConfig() {
        return poolConfig;
    }

    public void setPoolConfig(JedisPoolConfig poolConfig) {
        this.poolConfig = poolConfig;
    }


    public RedisStandaloneConfiguration getStandaloneConfig() {
        return standaloneConfig;
    }

    public void setStandaloneConfig(RedisStandaloneConfiguration standaloneConfig) {
        this.standaloneConfig = standaloneConfig;
    }
}

